package com.sxhuayuan.parking.controller.admin;

import com.sxhuayuan.parking.compenent.Page;
import com.sxhuayuan.parking.compenent.Pageable;
import com.sxhuayuan.parking.compenent.web.RespMessage;
import com.sxhuayuan.parking.controller.BaseController;
import com.sxhuayuan.parking.entity.ParkingIn;
import com.sxhuayuan.parking.service.ParkingInService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 车辆入场记录
 * @author helong
 * @create 2019-08-26 14:02
 */
@RestController("adminParkingInController")
@RequestMapping("/admin/parkingin")
public class ParkingInController extends BaseController {
	@Resource(name = "parkingInServiceImpl")
	ParkingInService service;

	@PostMapping("/list")
	public RespMessage list(@RequestBody Pageable pageable){
		Page<ParkingIn> page = service.findByPage(pageable);
		return successResp(page);
	}

}
